package 刷题10月.每日一题0930;
// https://leetcode-cn.com/problems/delete-node-in-a-linked-list/
public class 每日一题删除链表中的节点1102 {

      public class ListNode {
          int val;
          ListNode next;
          ListNode(int x) { val = x; }
      }

    class Solution {
        public void deleteNode(ListNode node) {
            node.val = node.next.val;
            node.next = node.next.next;
        }
    }
}
